﻿package  
{
	
	/**
	 * ...
	 * @author Jobe Makar - jobe@electrotank.com
	 */
	public class PluginConstants {
		
		
		// sp param
		public static const gameTitle:String = "g1";
		public static const gameDv:String = "g2";
		public static const gameManCount:String = "g3";
		
		public static const isServerMan:String = "sm";
		public static const START:String = "st0";
		public static const NEXT_QUESTION:String = "nq0";
		
		public static const SELECTED_Q:String = "sq0";
		public static const WIN_CHOICE:String = "wc0";
		public static const questionIdx:String = "qIdx";
		public static const isO:String = "isO";
		
		public static const GET_PLAYER_FULL_LIST:String = "gpfl";
	
		//db
		public static const TAG_ADD_TO_RANK:String 	= "ar";
		public static const TAG_ERROR:String 		= "err";
		public static const TAG_GET_RANK:String 	= "r";
		public static const TAG_USER:String 		= "u";		
		public static const TAG_LOGIN:String 		= "l";		
		public static const TAG_GET_GOOD:String 		= "tg";
		
		public static const TAG_GET_MYINFO:String 		= "tg0";
		public static const TAG_GET_MY_MAC:String 	= "tg00";
		public static const TAG_GET_MY_ID:String 		= "tg01";
		public static const TAG_GET_MY_LV:String 		= "tg02";
		public static const TAG_GET_MY_SCORE:String = "tg03";
		
		
		
		// actions
		public static const COMMON_PASS:String 			= "cp";
		public static const COMMON_PASS_TYPE:String 	= "cpt";
		
		public static const BRING_TILE_ME:String 		= "btm";
		public static const BRING_TILE_ME_DONE:String 	= "btmd";
		public static const TILE_LIST:String 	      	= "tl";
		
		public static const CHG_TILE_BACK:String 		= "bchg";
		public static const CHG_TILE_BACK_DONE:String 	= "bchgd";

		public static const CHG_TILE_MY:String 			= "mchg";
		public static const CHG_TILE_MY_DONE:String 	= "mchgd";
		
		public static const SELECT_TILE_OPPONENT:String = "oslt";
		
		public static const STARTER_NAME:String 		= "sn";
		public static const TURN_MNG:String 			= "tmg";
		public static const TURN_TYPE:String 			= "tt";
		
		public static const TURN_PASS:String 			= "tps";
		
		public static const ACTION:String = "a";
		public static const DIG_HERE:String = "d";
		public static const DONE_DIGGING:String = "dd";
		public static const INIT_ME:String = "i";
		public static const PLAYER_LIST:String = "ul";
		public static const ADD_PLAYER:String = "au";
		public static const REMOVE_PLAYER:String = "ru";
		public static const ERROR:String = "err";
		public static const GAME_OVER:String = "go";
		public static const POSITION_UPDATE:String = "pu";
		public static const START_COUNTDOWN:String = "s";
		public static const STOP_COUNTDOWN:String = "sc";
		public static const START_GAME:String = "sg";
		

		
		
		// parameters
		public static const BRING_MYTILE_IDX:String = "bmi";
		public static const BRING_BGTILE_IDX:String = "bbi";
		
		public static const IDX:String = "IDX";
		public static const DV:String = "DV";
		public static const TILE_LABEL:String = "LABEL";
		
		public static const iFromIdx:String = "IFI";
		public static const iTargetIdx:String = "ITI";
		
		
		public static const ITEM_FOUND:String = "f";
		public static const ITEM_ID:String = "id";
		public static const NAME:String = "n";
		public static const SCORE:String = "s";
		public static const X:String = "x";
		public static const Y:String = "y";
		public static const COUNTDOWN_LEFT:String = "cs";
		public static const GAME_STATE:String = "gs";
		public static const SUCCESS:String = "suc";
		public static const TIME_STAMP:String = "tm";
		
		//errors
		public static const SPOT_ALREADY_DUG:String = "SpotAlreadyDug";
		public static const ALREADY_DIGGING:String = "AlreadyDigging";
		public static const GAME_IS_OVER:String = "GameIsOver";
		
		//Local constants
		public static const GAME_NAME:String 	= "DiggingGamePlugin";
		public static const PLUGIN_NAME:String 	= "DiggingGamePlugin";
		public static const PLUGIN_DB:String 		= "DatabasePlugin";
		
		// turn mng
		public static const OPPONENT:String 		= "OPPONENT";		
		public static const ME:String 				= "ME";
		public static const ME_SELECTED:String 		= "ME_SELECTED";		
		public static const ALL:String 				= "ALL";
		public static const READY:String 			= "READY";
		
		
		public static const iStartTileLen:int = 4;
		
	}
	
}